/**
 * @ClassName Demo04
 * @Description 数组遍历优化
 * @Author Li
 * @Date 2022/7/31 10:27
 * @ModifyDate 2022/7/31 10:27
 * @Version 1.0
 */
public class Demo04 {
    public static void main(String[] args) {
        int[] array = {10, 20, 30, 40, 50};
        for (int i = 0; i < array.length; i++) {
            System.out.println(array[i]); // 打印对应索引的数组值
        }
    }
}
